package com.tuo51.foudation.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.tuo51
 * on 2017/5/22
 * *******************************
 */
@MappedSuperclass
@Data
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
public abstract class Domain extends Model {

    @Column(columnDefinition = " datetime DEFAULT NOW() COMMENT '创建时间' ")
    private Date created = new Date();

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否删除 0：否，1是' ")
    private Boolean deleted = false;

}
